﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace NeonMika.EightTracks.Responses
{
    class PlayTokenResponse : Response
    {
        string play_token;

        public string PlayToken
        {
            get { return play_token; }
            set { play_token = value; }
        }

        public PlayTokenResponse(XElement xml)
            : base(xml)
        {
            string element = "play-token";
            if ( xml.Element(element) != null && xml.Element(element).Attribute("nil") == null )
                PlayToken = xml.Element(element).Value.ToString( );
        }
    }
}
